<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                template="/template/MemberTemplate.xhtml">

    <ui:define name="contentInsert">  
        
        <h3>Your Purchased Tickets</h3>
        <h:form>          
                                                    
        
         <p:dataTable value="#{userPerformanceMB.getTicket()}" var="o" paginator="true" rows="15" emptyMessage="Nothing to display." style="font-size: 10px">
             

                        <p:column>
                            <f:facet name="header">Show Name</f:facet>
                            #{o.eventName}
                        </p:column>
                        
                         <p:column>
                            <f:facet name="header">Organiser</f:facet>
                            #{o.stakeholderName}
                        </p:column>   
             
                        <p:column>
                            <f:facet name="header">Show <br/>Date</f:facet>
                            #{o.getShowDateinDateFormat()}
                        </p:column>
             
                        <p:column>
                            <f:facet name="header">Venue</f:facet>
                            #{o.showVenue}
                        </p:column>


                        <p:column style="width: 5%">
                            <f:facet name="header">Seat <br/>Number</f:facet>
                            #{o.seatNo}
                        </p:column>
      
                        <p:column>
                            <f:facet name="header">Ticket Purchase <br/> Date</f:facet>
                            #{o.getPurchaseDateinDateFormat()}
                        </p:column>  

         </p:dataTable>
       </h:form>
        </ui:define>
</ui:composition>
